package org.jeecg.modules.engine.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.jeecg.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 需求表
 * @Author: jeecg-boot
 * @Date:   2020-07-20
 * @Version: V1.0
 */
@Data
@TableName("requirement")
@ApiModel(value="engineering对象", description="工程表")
public class Requirement implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
	@ApiModelProperty(value = "主键")
	private String id;
	/**物料Id*/
	@Excel(name = "物料Id", width = 15)
	@ApiModelProperty(value = "物料Id")
	private String matId;
	/**物料编号*/
	@Excel(name = "物料编号", width = 15)
	@ApiModelProperty(value = "物料编号")
	private String matCode;
	/**物料名称*/
	@Excel(name = "物料名称", width = 15)
	@ApiModelProperty(value = "物料名称")
	private String matName;
	/**物料单位*/
	@Excel(name = "物料单位",width = 15)
	@ApiModelProperty(value = "物料单位")
	private String matUnit;
	/**规格*/
	@Excel(name = "规格", width = 15)
	@ApiModelProperty(value = "规格")
	private String standard;
	/**长度(m)*/
	@Excel(name = "长度(m)", width = 15)
	@ApiModelProperty(value = "长度(m)")
	private Double lenght;
	/**重量(kg)*/
	@Excel(name = "重量(kg)", width = 15)
	@ApiModelProperty(value = "重量(kg)")
	private Double weight;
	/**数量*/
	@Excel(name = "数量", width = 15)
	@ApiModelProperty(value = "数量")
	private Integer count;
	/**总长(m)*/
	@Excel(name = "总长(m)", width = 15)
	@ApiModelProperty(value = "总长(m)")
	private Double totalLenght;
	/**总重(kg)*/
	@Excel(name = "总重(kg)", width = 15)
	@ApiModelProperty(value = "总重(kg)")
	private Double totalWeight;
	/**生产Id*/
	@ApiModelProperty(value = "生产Id")
	private String engineeringId;
	/**需求单号*/
	@ApiModelProperty(value = "物料单号")
	private String requirementNo;
	/**物料排序*/
	@ApiModelProperty(value = "物料排序")
	private Integer sort;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
	private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
	private String sysOrgCode;
}
